#ifndef _GENERAL_H_
#define _GENERAL_H_


#ifndef FALSE
#define TRUE          (1)
#define FALSE	        (!TRUE)
#endif

typedef unsigned char uint8;
typedef unsigned int  uint16;
typedef unsigned long  uint32;
typedef uint8 Bool;

typedef uint16 ToPSyncMsgSequenceNumber;
typedef uint16 ToPSyncMsgSet;
typedef uint8 ToPSyncMsgLength;  /* maximum size of a ToPSync message is 200 bytes */
typedef uint8 ToPSyncResultType;
typedef uint16 ToPSyncMsgType;
typedef uint8 ToPSyncConfigResult;

/* ToPSync Message Header */
typedef struct
{
	ToPSyncMsgSet messageSetId;
	ToPSyncMsgLength messageLength;
	ToPSyncMsgType messageType;
	ToPSyncMsgSequenceNumber sequenceNumber;
	ToPSyncMsgSequenceNumber originatingSequenceNumber;
	Bool endOfMessage;		     /* indicates whether the message is the last one. */
	ToPSyncConfigResult result;  /* only used in responses. */
	uint32 securityKey;
} ToPSyncMsgHeader;



#endif // _GENERAL_H_

// eof
